package com.shadow.mall.order.remote;


import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.fulfill.api.FulfillApi;
import com.shadow.mall.fulfill.domain.request.CancelFulfillRequest;
import com.shadow.mall.order.exception.OrderBizException;
import com.shadow.mall.order.exception.OrderErrorCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 履约服务远程接口
 *
 * @version 1.0
 */

@Component
@FeignClient("shadow-mall-fullfill")
public interface FulfillService {

    /**
     * 取消订单履约
     * @param cancelFulfillRequest
     */
    @PostMapping("/fulfill/cancelFulfill")
    JsonResult<Boolean>  cancelFulfill(CancelFulfillRequest cancelFulfillRequest);
}